package com.mes.cloud.dao;

import com.mes.cloud.api.dto.response.syncdata.SynchroProductCustomerGroupCustomerDto;
import com.mes.cloud.entity.ProductCustomerGroupCustomer;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;
import java.util.Set;

/**
 * 产品客户组-客户关联
 *
 * @author wxm
 * @email xiaomin.wu1@pactera.com
 * @version 2019-09-24 16:08:41
 */
public interface ProductCustomerGroupCustomerDao extends SelectByIdsMapper<ProductCustomerGroupCustomer>, Mapper<ProductCustomerGroupCustomer>{

    int batchDelete(@Param("list") Set<String> ids,
                    @Param("updateDateStr") String updateDateStr,
                    @Param("employeeNo") String employeeNo,
                    @Param("employeeName") String employeeName);

    int batchInsert(List<ProductCustomerGroupCustomer> productCustomerGroupCustomerList);

    /**
     * @Author ysd
     * @Description 批量更新
     * @Date 18:45 2019/10/27
     **/
    int batchUpdate(List<ProductCustomerGroupCustomer> productCustomerGroupCustomerList);

    /**
     * @Author ysd
     * @Description 客户组_客户关系详情
     * @Date 16:37 2019/10/26
     **/
    ProductCustomerGroupCustomer findCustomerGroupCustomerRelationDetails(SynchroProductCustomerGroupCustomerDto synchroDto);
}
